package com.isoftstone.disk.login.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MenuLevelEnetity implements Serializable {

    private String menuId;
    private String menuName;
    private String menuUrl;
    private String menuIcon;
    private List<MenuLevelEnetity> childList = new ArrayList<>();

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public List<MenuLevelEnetity> getChildList() {
        return childList;
    }

    public void setChildList(List<MenuLevelEnetity> childList) {
        this.childList = childList;
    }

    public void addChildList(MenuLevelEnetity menuLevelEnetity) {
        this.childList.add(menuLevelEnetity);
    }

    @Override
    public String toString() {
        return "MenuLevelEnetity{" +
                "menuId='" + menuId + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", menuIcon='" + menuIcon + '\'' +
                ", childList=" + childList +
                '}';
    }
}
